<template>
    <div>
      <button @click="haha"></button>
      <van-dialog v-model="checkshow" title="标题" show-cancel-button>
        <img src="https://img.yzcdn.cn/vant/apple-3.jpg" />
      </van-dialog>
    </div>
</template>

<script>
    export default {
        name: "try",
      data(){
          return{
            checkshow:false,
          }
      },
      methods:{
          haha(){
            this.checkshow =!this.checkshow;
          }
      }
    }
</script>

<style scoped>

</style>
